Skip to content

Conversation

CoriPegliasco
Copy link
Collaborator

No description provided.

@@ -1275,7 +1275,7 @@ def get_step_in_km(self, lat, wave_length):
min_wave_length = max(step_x_km, step_y_km) * 2
if wave_length < min_wave_length:
logger.error(
"Wave_length too short for resolution, must be > %d km",
"Wavelength too short for resolution, must be > %d km",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case we talked about variable which are called "wave_length", i don't know the best soltuion

@@ -1315,7 +1315,7 @@ def finalize_kernel(self, kernel, order, half_x_pt, half_y_pt):

def kernel_lanczos(self, lat, wave_length, order=1):
"""Not really operational
wave_length in km
wavelength in km
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n this case we talked about variable which are called "wave_length", i don't know the best soltuion

@@ -1327,7 +1327,7 @@ def kernel_lanczos(self, lat, wave_length, order=1):
return self.finalize_kernel(kernel, order, half_x_pt, half_y_pt)

def kernel_bessel(self, lat, wave_length, order=1):
"""wave_length in km
"""wavelength in km
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n this case we talked about variable which are called "wave_length", i don't know the best soltuion, maybe add docstring for argument like :
:param float wave_length: in km

@@ -255,6 +257,12 @@ def correct_close_events(self, nb_days_max=20):
:param float nb_days_max: maximum time to search for splitting-merging event
"""

# FIXME : we want to change
# segment A splits from segment B, then x days after segment B merges with A
# to
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe create a project note or an issue for improvement, about that

@@ -1197,14 +1205,17 @@ def fully_connected(self):
return self.tag_segment().shape[0] == 1

def remove_trash(self):
"""
Remove the lonely eddies (only 1 obs in segment, associated segment number is 0)"""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think black allow """" on same line?

@@ -885,7 +885,7 @@ def load_from_netcdf(
:param bool raw_data: If true load data without apply scale_factor and add_offset
:param None,list(str) remove_vars: List of variable name which will be not loaded
:param None,list(str) include_vars: If defined only this variable will be loaded
:param None,dict indexs: Indexs to laad only a slice of data
:param None,dict indexs: Indexs to laod only a slice of data
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still a typo :)

@AntSimi AntSimi merged commit 93709e4 into AntSimi:master Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants